﻿using PBDesk.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace PBDesk.Utilities.Tests
{
    
    
    /// <summary>
    ///This is a test class for EnumUtilsTest and is intended
    ///to contain all EnumUtilsTest Unit Tests
    ///</summary>
    [TestClass()]
    public class EnumUtilsTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for ParseEnum
        ///</summary>
        public void ParseEnumTestHelper<T>()
            where T : struct
        {
            int input = 0; // TODO: Initialize to an appropriate value
            bool throwException = false; // TODO: Initialize to an appropriate value
            T expected = new T(); // TODO: Initialize to an appropriate value
            T actual;
            actual = EnumUtils.ParseEnum<T>(input, throwException);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ParseEnumTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call ParseEnumTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for ParseEnum
        ///</summary>
        public void ParseEnumTest1Helper<T>()
            where T : struct
        {
            int input = 0; // TODO: Initialize to an appropriate value
            T defaultValue = new T(); // TODO: Initialize to an appropriate value
            bool throwException = false; // TODO: Initialize to an appropriate value
            T expected = new T(); // TODO: Initialize to an appropriate value
            T actual;
            actual = EnumUtils.ParseEnum<T>(input, defaultValue, throwException);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ParseEnumTest1()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call ParseEnumTest1Helper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for ParseEnum
        ///</summary>
        public void ParseEnumTest2Helper<T>()
            where T : struct
        {
            string inString = string.Empty; // TODO: Initialize to an appropriate value
            bool ignoreCase = false; // TODO: Initialize to an appropriate value
            bool throwException = false; // TODO: Initialize to an appropriate value
            T expected = new T(); // TODO: Initialize to an appropriate value
            T actual;
            actual = EnumUtils.ParseEnum<T>(inString, ignoreCase, throwException);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ParseEnumTest2()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call ParseEnumTest2Helper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for ParseEnum
        ///</summary>
        public void ParseEnumTest3Helper<T>()
            where T : struct
        {
            string inString = string.Empty; // TODO: Initialize to an appropriate value
            T defaultValue = new T(); // TODO: Initialize to an appropriate value
            bool ignoreCase = false; // TODO: Initialize to an appropriate value
            bool throwException = false; // TODO: Initialize to an appropriate value
            T expected = new T(); // TODO: Initialize to an appropriate value
            T actual;
            actual = EnumUtils.ParseEnum<T>(inString, defaultValue, ignoreCase, throwException);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ParseEnumTest3()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call ParseEnumTest3Helper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for ToEnum
        ///</summary>
        public void ToEnumTestHelper<T>()
            where T : struct
        {
            int input = 0; // TODO: Initialize to an appropriate value
            T defaultValue = new T(); // TODO: Initialize to an appropriate value
            bool throwException = false; // TODO: Initialize to an appropriate value
            T expected = new T(); // TODO: Initialize to an appropriate value
            T actual;
            actual = EnumUtils.ToEnum<T>(input, defaultValue, throwException);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ToEnumTest()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call ToEnumTestHelper<T>() with appropriate type parameters.");
        }

        /// <summary>
        ///A test for ToEnum
        ///</summary>
        public void ToEnumTest1Helper<T>()
            where T : struct
        {
            int input = 0; // TODO: Initialize to an appropriate value
            bool throwException = false; // TODO: Initialize to an appropriate value
            T expected = new T(); // TODO: Initialize to an appropriate value
            T actual;
            actual = EnumUtils.ToEnum<T>(input, throwException);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        [TestMethod()]
        public void ToEnumTest1()
        {
            Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call ToEnumTest1Helper<T>() with appropriate type parameters.");
        }
    }
}
